From 69cb3ffab433b7b774354aaee972696e1710607e Mon Sep 17 00:00:00 2001 From: robertl Date: Wed, 20 Nov 2002 15:59:09 +0000 Subject: [PATCH] Zero a route head when alloced. --- gpsbabel/route.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/route.c b/gpsbabel/route.c index 65752c90b..8a8ea03fc 100644 --- a/gpsbabel/route.c +++ b/gpsbabel/route.c @@ -33,7 +33,7 @@ route_head * route_head_alloc(void) { route_head *rte_head; - rte_head = xmalloc(sizeof (*rte_head)); + rte_head = xcalloc(sizeof (*rte_head), 1); QUEUE_INIT(&rte_head->Q); return rte_head; } -- 2.30.2